<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>index</title>
    <link rel="stylesheet" type="text/css" href="../css/css.css">
    <script src="../js/jquery-2.1.4.min.js"></script>

    <script src="http://cdn.static.runoob.com/libs/angular.js/1.4.6/angular.min.js"></script>
    <script src="../js/index.js"></script>
    <script src="../js/angular.js"></script>
</head>
<body ng-app="myApp"  ng-controller="myCtrl">
        <h1>this is index.html</h1>
        用户信息：<h5 id="username">未登录</h5>

        <h2>判断登录</h2>
        <button id="getAllUser">点击获取所有用户</button>
        <img src="../images/1.png">
        <form action="/post/addPost" method="post">
            新增
           userid <input type="text" name="postUserId"><br>
            title <input type="text" name="postTitle"><br>
            postContent <input type="text" name="postContent"><br>
            postImgUrl <input type="text" name="postImgUrl"><br>
            <input type="submit" value="新建帖子">
        </form>
        ---------
        <h2>新建回复</h2>
        <form action="/reply/addreply" method="post">
            新增
            回复内容<input type="text" name="replyContent"><br>
            回复的帖子id <input type="text" name="replyPostId"><br>
           回复用户的id<input type="text" name="replyUserId"><br>
            回复用户的姓名<input type="text" name="replyUserName"><br>
            <input type="submit" value="回复">
        </form>
        ---------
<li ng-repeat="x in posts">{{x.postid}}</li>
</body>
</html>